namespace OFX.Aggregator.WebScraping.Implementation
{
	#region #using Directives

	using System.Collections.Generic;

	using Infrastructure;

	using mshtml;

	#endregion

	internal class HtmlFrameWindowList : List<IHtmlFrameWindow>
	{
		public HtmlFrameWindowList(IHTMLFramesCollection2 frames, HtmlDocumentManager documentWrapper)
		{
			for (int i = 0; i < frames.length; ++i)
			{
				object index = i;
				var frame = (HTMLWindow2Class) frames.item(ref index);
				Add(documentWrapper.GetWrapper(frame));
			}
		}
	}
}